<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>
    <base href="<%=basePath%>">
    
    <title>My JSP 'weiJieSuan.jsp' starting page</title>
    
	<meta http-equiv="pragma" content="no-cache">
	<meta http-equiv="cache-control" content="no-cache">
	<meta http-equiv="expires" content="0">    
	<meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
	<meta http-equiv="description" content="This is my page">
	<!--
	<link rel="stylesheet" type="text/css" href="styles.css">
	-->
<script type="text/javascript">
		
		
	function shouSuo(){
		$.ajax({
			type:"post",
			url:"cashierDesk!queryWeiJieSuan.do",
			data: $("#ss").serialize(),
			datatype:"html",
			success:function(result){
				alert(result);
			 	$("#orderInfo").html(result);
			 	pintu();
			}
		});
	}
	
</script>
  </head>
  
  <body>
    <div class="dialog-win" masklayout="win-0" style="position: fixed; width: 960px; z-index: 11; left: 103.5px; top: 107.5px;"><div class="dialog open">
    <div class="dialog-head">
      <span class="close rotate-hover"></span>
      <strong>未完成订单列表</strong>
    </div>
    <div class="dialog-body line">
        <div class="x12 padding-left padding-right padding-bottom">
            <div class="x12">
                    <form id="ss" method="post" action="cashierDesk!queryWeiJieSuan.do" class="ajaxpost form-inline margin-right" style="float: right;" target-id="moneys-xlist">
                        <div class="form-group">
                            <div class="field">
                                                                  订单号：
                             <div class="input-group">
                                    <input class="input" type="text" name="orderSn" id="search_keywords" placeholder="" value="" >
                                </div>
                                                                     开始时间：
                             <div class="input-group">
                                    <input class="input" type="text" name="startTime" id="search_keywords" placeholder="" value=""  onclick="javascript:WdatePicker()" >
                                </div>
               			 结束时间 ：                 
                                <div class="input-group">
                                    <input class="input" type="text" name="endTime" id="keywords" placeholder="" value=""  onclick="javascript:WdatePicker()">
                                    <div class="addbtn">
                                        <a href="javascript:void(0)" type="submit" class="button" onclick="shouSuo();"><span class="icon-search">搜</span></a>
                                    </div>
                                </div>
                            </div>
                        </div>
                    </form>
            </div>
        </div>
        <div class="x12" id="moneys-xlist" style="height: 410px;">
             <div class="x12 border over-auto" style="height: 360px;">
 <table class="table table2 table-striped table-hover bg" style="min-width: 980px;">
    <thead class="height">
        <tr class="tb-tr">
            <th width="80" class="bg-EDEDED">操作</th>
            <th width="60" class="bg-EDEDED serial-no">序号</th>
            <th width="180" class="bg-EDEDED text-left">创建时间</th>
            <th width="180" class="bg-EDEDED text-left">会员</th>
            <th width="100" class="bg-EDEDED text-left">金额</th>
           <!--  <th width="100" class="bg-EDEDED text-left casier-not-order-t1">待付金额</th> -->
            <th width="100" class="bg-EDEDED text-left casier-not-order-t2">赠送积分</th>
            <th width="180" class="bg-EDEDED text-left">订单号</th>
        </tr>
    </thead>
    <tbody id="orderInfo" class="tmp-order-xlist">
    	<s:iterator value="#list" var="obj" status="sta">
                <tr>
            <td>
                <div class="button-group">
                  <button type="button" class="button button-little bg-blue dropdown-toggle">操作 <span class="downward"></span></button>
                  <ul class="drop-menu">
	                    <%-- <li><a href="javascript:void(0);" onclick="javascript:$showdialogs($(this));" 
	                    data-url="" data-toggle="click" data-mask="1" data-width="600px"><span class="icon-caret-right"></span> 微信支付</a></li> --%>
	                    <li><a href="javascript:void(0);" onclick="javascript:$showdialogs($(this));" 
	                    data-url="cashierDesk!toOrderPay.do?orderSn=${obj[5] }&pay_method=5&discount=${obj[4]}&moneyNum=${obj[3]}" data-toggle="click" data-mask="1" data-width="600px"><span class="icon-caret-right"></span> 支付宝</a></li>
	                    <%-- <li><a href="javascript:void(0);" onclick="javascript:$showdialogs($(this));" 
	                    data-url="" data-toggle="click" data-mask="1" data-width="600px"><span class="icon-caret-right"></span> 银联卡</a></li> --%>
	                    <li><a href="javascript:void(0);" onclick="javascript:$showdialogs($(this));" 
	                    data-url="cashierDesk!toXianJin.do?orderSn=${obj[5] }&pay_method=5&discount=${obj[4]}&moneyNum=${obj[3]}&memberId=${obj[1]}" data-toggle="click" data-mask="1" data-width="600px"><span class="icon-caret-right"></span> 现金</a></li>
                     <s:if test="#obj[1]!=''">
	                    <%-- <li><a href="javascript:void(0);" onclick="javascript:$showdialogs($(this));" 
	                    data-url="" data-toggle="click" data-mask="1" data-width="600px"><span class="icon-caret-right"></span> 积分抵现</a></li> --%>
	                    <li><a href="javascript:void(0);" onclick="javascript:$showdialogs($(this));" 
	                    data-url="cashierDesk!toMemberCard.do?orderSn=${obj[5] }&pay_method=5&discount=${obj[4]}&moneyNum=${obj[3]}&memberId=${obj[1]}" data-toggle="click" data-mask="1" data-width="600px"><span class="icon-caret-right"></span> 会员卡余额</a></li>
                   	 </s:if>
                </ul>
                </div>
            </td>
            <td>${sta.count }</td>
            <td>${obj[0] }</td>
            <s:if test="#obj[1]==''">
            <td>散客</td>
            </s:if>
            <s:else>
            <td>${obj[2] }</td>
            </s:else>
            <td>${obj[3] }</td>
            <!-- <td>30.00</td> -->
           
            <td>${obj[4] }</td>
           
            
            <td>${obj[5] }</td>
        </tr>
        </s:iterator>
            </tbody>
</table>
</div>
<div class="x12 padding-top text-right page-h"></div>
        </div>
    </div>
    <div class="dialog-foot">
        <button class="button dialog-close" type="button">关闭</button>
    </div>
  </div>
<script type="text/javascript">
    pintu();
    table_width();
</script>
</div>
  </body>
</html>
